//
//  ViewControllerNew2.m
//  ProjectTest
//
//  Created by User on 2017/10/12.
//  Copyright © 2017年 User. All rights reserved.
//

#import "ViewControllerNew2.h"

@interface ViewControllerNew2 ()


@end

@implementation ViewControllerNew2

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"2";
    self.view.backgroundColor = [UIColor whiteColor];
    self.textField2.text = self.string;
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)pop:(id)sender {
    
//    if (self.delegate && [self.delegate respondsToSelector:@selector(comeBack:)])
//    {
//        [self.delegate comeBack:self.textField2.text];
//        [self.navigationController popViewControllerAnimated:YES];
//    }
    !self.btnClick? :self.btnClick(self.textField2.text);
    [self.navigationController popViewControllerAnimated:YES];


    NSLog(@"kalsdjfljsaldjfl");
    
    NSLog(@"dfadfadfadfadf");
}

- (void)dataBlock:(BtnClick)btnClick
{
    self.btnClick = btnClick;
}

- (void)dealloc
{
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


@end
